home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / msqllib / gcc / os-include / clib / msql_protos.h
C/C++ Source or Header  |  1999-01-01  |  3KB  |  76 lines

  1. /*
  2. **      $VER: msql_protos.h 5.0 (16.09.98)
  3. **
  4. **      prototypes for msql.library
  5. **
  6. **      (C) Copyright 1998 Christophe Sollet
  7. **      All Rights Reserved.
  8. */
  9.  
  10. #ifndef CLIB_MSQL_PROTOS_H
  11. #define CLIB_MSQL_PROTOS_H
  12.  
  13. #ifndef MSQL_MSQLBASE_H
  14. #endif
  15.  
  16. #include <time.h>
  17.  
  18. #ifndef MSQL_MSQL_H
  19. #include <libraries/msql.h>
  20. #endif
  21.  
  22. struct MsqlConnection *MsqlAllocConnection(void);
  23. void MsqlFreeConnection(struct MsqlConnection *);
  24. char *MsqlGetErrMsg(struct MsqlConnection *);
  25. struct MsqlConnection *MsqlConnect(struct MsqlConnection *, char *);
  26. int    MsqlSelectDB(struct MsqlConnection *, char *);
  27. int    MsqlQuery(struct MsqlConnection *, char *);
  28. int    MsqlCreateDB(struct MsqlConnection *, char *);
  29. int    MsqlDropDB(struct MsqlConnection *, char *);
  30. int    MsqlShutdown(struct MsqlConnection *);
  31. int    MsqlGetProtoInfo(struct MsqlConnection *);
  32. int    MsqlReloadAcls(struct MsqlConnection *);
  33. char *MsqlGetServerInfo(struct MsqlConnection *);
  34. char *MsqlGetHostInfo(struct MsqlConnection *);
  35. void MsqlClose(struct MsqlConnection *);
  36. void MsqlDataSeek(m_result *, int);
  37. void MsqlFieldSeek(m_result *, int);
  38. void MsqlFreeResult(m_result *);
  39. m_row MsqlFetchRow(m_result *);
  40. m_field    *MsqlFetchField(m_result *);
  41. m_result *MsqlListDBs(struct MsqlConnection *);
  42. m_result *MsqlListTables(struct MsqlConnection *);
  43. m_result *MsqlListFields(struct MsqlConnection *, char *);
  44. m_result *MsqlListIndex(struct MsqlConnection *, char *, char *);
  45. m_result *MsqlStoreResult(struct MsqlConnection *);
  46. int MsqlLoadConfigFile(struct MsqlConnection *, char *);
  47. int MsqlGetIntConf(struct MsqlConnection *, char *, char *);
  48. char *MsqlGetCharConf(struct MsqlConnection *, char *, char *);
  49. int    MsqlGetServerStats(struct MsqlConnection *, BPTR);
  50. int    MsqlCopyDB(struct MsqlConnection *, char *, char *);
  51. int MsqlMoveDB(struct MsqlConnection *, char *, char *);
  52. char *MsqlUnixTimeToDate(time_t);
  53. char *MsqlUnixTimeToTime(time_t);
  54. m_seq *MsqlGetSequenceInfo(struct MsqlConnection *, char *);
  55. time_t MsqlDateToUnixTime(char *);
  56. time_t MsqlTimeToUnixTime(char *);
  57. char *MsqlSumTimes(char *, char *);
  58. char *MsqlDateOffset(char *, int, int, int);
  59. char *MsqlDiffTimes(char *, char *);
  60. int MsqlDiffDates(char *, char *);
  61. BOOL MsqlAddMHookA(struct Hook *, struct TagList *);
  62. void MsqlRemMHook(struct Hook *);
  63.  
  64. BOOL MsqlAddMHook(struct Hook *, ULONG, ...);
  65.  
  66. /* A connection structure was not required any more with this function */
  67. #ifdef MSQL_OBSOLETE_PROTOS
  68. #define MsqlDataSeek(a, b, c)    MsqlDataSeek(b, c)
  69. #define MsqlFieldSeek(a, b, c)    MsqlFieldSeek(b , c)
  70. #define MsqlFreeResult(a , b)    MsqlFreeResult(b)
  71. #define MsqlFetchRow(a, b)        MsqlFetchRow(b)
  72. #define MsqlFetchField(a, b)    MsqlFetchField(b)
  73. #endif
  74.  
  75. #endif
  76.